package com.xnyzc.lhy.mis.entity.user;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.Version;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * 接收用戶信息的实体类
 *
 * @author zhaolijie
 * @date:2019/08/27
 */
@Data
public class UserInfoManage {

    @ApiModelProperty(value = "用户ID(使用Snowflake生成)")
    private Long userId;

    @ApiModelProperty(value = "手机号码")
    private String userPhone;

    @ApiModelProperty(value = "登录账号")
    private String loginAccount;

    @ApiModelProperty(value = "账号登录密码")
    private String loginPassword;

    @ApiModelProperty(value = "用户姓名")
    private String userName;

    @ApiModelProperty(value = "用户昵称")
    private String nickName;

    @ApiModelProperty(value = "头像")
    private Long avatarFileId;

    @ApiModelProperty(value = "1：男，2：女，3：保密,4:未设置")
    private String sex;

    @ApiModelProperty(value = "电子邮件")
    private String email;

    @ApiModelProperty(value = "邮箱绑定状态（0：未绑定；1：已绑定）")
    private Integer emailStatus;

    @ApiModelProperty(value = "0:正常用户;1:黑名单用户;2:用户已注销")
    private Integer isBlocked;

    @ApiModelProperty(value = "0:未上传;1:待审核,2:审核通过;4:审核失败；5：身份证过期；")
    private Integer identityVerfied;

    @ApiModelProperty(value = "0:未上传;1:待审核,2:审核通过;4:审核失败；5：驾照过期；")
    private Integer driveVerfied;

    @ApiModelProperty(value = "微信openId")
    private String openId;

    @ApiModelProperty(value = "用户token")
    private String userToken;

    @ApiModelProperty(value = "用户盐")
    private String salt;

    @ApiModelProperty(value = "用户来源")
    private String tag;

    @ApiModelProperty(value = "用户类型（0：个人；1：企业）")
    private Integer userType;

    @ApiModelProperty(value = "扩展字段1")
    private String expand1;

    @ApiModelProperty(value = "扩展字段2")
    private String expand2;

    @ApiModelProperty(value = "扩展字段3")
    private String expand3;

    @ApiModelProperty(value = "版本号")
    private Long version;

    @ApiModelProperty(value = "是否删除(0:否,1:是)")
    @TableLogic
    private Integer deleted;

    @ApiModelProperty(value = "创建人")
    private Long createUser;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新人")
    private Long updateUser;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;


    @ApiModelProperty(value = "归属部门id")
    private String officeId;
    @ApiModelProperty(value = "归属部门名")
    private String officeName;
    @ApiModelProperty(value = "归属部门code")
    private String officeCode;

    @ApiModelProperty(value = "归属公司文字")
    private String ownershipCompany;

    @ApiModelProperty(value = "归属部门文字")
    private String departmentsOfAttribution;


    @ApiModelProperty(value = "ID(使用Snowflake生成)")
    @TableId(value = "info_id", type = IdType.INPUT)
    private Long infoId;

    @ApiModelProperty(value = "年龄")
    private Integer age;

    @ApiModelProperty(value = "民族（参见字典表）")
    private Integer nationality;

    @ApiModelProperty(value = "用户等级")
    private String userLevel;

    @ApiModelProperty(value = "生日")
    private Date birthday;

    @ApiModelProperty(value = "常住地址")
    private String address;

    @ApiModelProperty(value = "紧急联系人")
    private String emergencyContact;

    @ApiModelProperty(value = "紧急联系人电话")
    private String emergencyMobile;

    @ApiModelProperty(value = "紧急联系人地址")
    private String emergencyAddress;

    @ApiModelProperty(value = "身份证正面图片")
    private Long identityPositiveFileId;

    @ApiModelProperty(value = "身份证反面照片")
    private Long identityOtherFileId;

    @ApiModelProperty(value = "身份证到期日期")
    private Date identityDueDate;

    @ApiModelProperty(value = "身份证号")
    private String identityNumber;

    @ApiModelProperty(value = "证件类型.1:身份证,2护照,3.其他")
    private Integer identityType;

    @ApiModelProperty(value = "户籍所在地")
    private String identityAddress;

    @ApiModelProperty(value = "驾驶证正面图片")
    private Long driveLicenseFileId;

    @ApiModelProperty(value = "驾驶证另外一面")
    private Long driveOtherLicenseFileId;

    @ApiModelProperty(value = "驾驶证编号")
    private String driveLicenseNo;

    @ApiModelProperty(value = "驾驶证起始日期")
    private Date driverStartDate;

    @ApiModelProperty(value = "证件到期时间")
    private Date driveLicenseDuedate;

    @ApiModelProperty(value = "驾照类型")
    private String driveLicenseType;

    @ApiModelProperty(value = "驾驶证发证地")
    private String driveLicenseIssueplace;

    @ApiModelProperty(value = "身份审核通过时间")
    private Date passingDate;

    @ApiModelProperty(value = "身份认证拒绝原因")
    private String identityRefuseReason;

    @ApiModelProperty(value = "驾照认证拒绝原因")
    private String idriveRefuseReason;

    @ApiModelProperty(value = "拉黑原因")
    private String blockedReason;

    @ApiModelProperty(value = "拉黑日期")
    private Date blockedDate;

    @ApiModelProperty(value = "审核类型：0，人工审核。1自动审核")
    private Integer auditType;

    @ApiModelProperty(value = "用户注册城市ID")
    private Integer registerCityId;

    @ApiModelProperty(value = "是否同意协议（0：否、1：是）")
    private Integer agreement;

}
